package com.liqi.device.service.impl;

import java.util.List;
import com.liqi.common.utils.DateUtils;
import com.liqi.device.domain.DvRemoteScreenshot;
import com.liqi.device.mapper.DvRemoteScreenshotMapper;
import com.liqi.device.service.IDvRemoteScreenshotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 远程截屏图片保存Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-01
 */
@Service
public class DvRemoteScreenshotServiceImpl implements IDvRemoteScreenshotService
{
    @Autowired
    private DvRemoteScreenshotMapper dvRemoteScreenshotMapper;

    /**
     * 查询远程截屏图片保存
     * 
     * @param id 远程截屏图片保存主键
     * @return 远程截屏图片保存
     */
    @Override
    public DvRemoteScreenshot selectDvRemoteScreenshotById(Long id)
    {
        return dvRemoteScreenshotMapper.selectDvRemoteScreenshotById(id);
    }

    @Override
    public DvRemoteScreenshot selectDvRemoteScreenshot(DvRemoteScreenshot dvRemoteScreenshot) {
        return dvRemoteScreenshotMapper.selectDvRemoteScreenshot(dvRemoteScreenshot);
    }

    /**
     * 查询远程截屏图片保存列表
     * 
     * @param dvRemoteScreenshot 远程截屏图片保存
     * @return 远程截屏图片保存
     */
    @Override
    public List<DvRemoteScreenshot> selectDvRemoteScreenshotList(DvRemoteScreenshot dvRemoteScreenshot)
    {
        return dvRemoteScreenshotMapper.selectDvRemoteScreenshotList(dvRemoteScreenshot);
    }

    /**
     * 新增远程截屏图片保存
     * 
     * @param dvRemoteScreenshot 远程截屏图片保存
     * @return 结果
     */
    @Override
    public int insertDvRemoteScreenshot(DvRemoteScreenshot dvRemoteScreenshot)
    {
        dvRemoteScreenshot.setCreateTime(DateUtils.getNowDate());
        return dvRemoteScreenshotMapper.insertDvRemoteScreenshot(dvRemoteScreenshot);
    }

    /**
     * 修改远程截屏图片保存
     * 
     * @param dvRemoteScreenshot 远程截屏图片保存
     * @return 结果
     */
    @Override
    public int updateDvRemoteScreenshot(DvRemoteScreenshot dvRemoteScreenshot)
    {
        dvRemoteScreenshot.setUpdateTime(DateUtils.getNowDate());
        return dvRemoteScreenshotMapper.updateDvRemoteScreenshot(dvRemoteScreenshot);
    }

    /**
     * 批量删除远程截屏图片保存
     * 
     * @param ids 需要删除的远程截屏图片保存主键
     * @return 结果
     */
    @Override
    public int deleteDvRemoteScreenshotByIds(Long[] ids)
    {
        return dvRemoteScreenshotMapper.deleteDvRemoteScreenshotByIds(ids);
    }

    /**
     * 删除远程截屏图片保存信息
     * 
     * @param id 远程截屏图片保存主键
     * @return 结果
     */
    @Override
    public int deleteDvRemoteScreenshotById(Long id)
    {
        return dvRemoteScreenshotMapper.deleteDvRemoteScreenshotById(id);
    }
}
